package design.patttern.factory.factorymethod;

/**
 * Created by SliverZhang on 2018/1/16.
 */
public class ChicagoPizzaStore extends PizzaStore {
    protected Pizza createPizza(String item) {
        if (item.equals("cheese")){
            return new ChicagoStyleCheesePizza();
        }else return null;
    }
}
